package com.baitiaojun.video.mapper;

import com.baitiaojun.api.domain.video.VideoView;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import java.util.Set;

public interface VideoViewMapper {
    int deleteByPrimaryKey(Long id);

    int insert(VideoView record);

    int insertSelective(VideoView record);

    VideoView selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(VideoView record);

    int updateByPrimaryKey(VideoView record);

    Integer isExistsVideoView(Map<String, Object> params);

    Integer videoViewCount(Long videoId);

    List<VideoView> batchVideoViewCount(@Param("videoIds") Set<Long> videoIds);
}